<local:DocumentBase x:Class="WPFExcelReport.ITXABPLAN"
                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"                        
                        xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                        xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                         xmlns:db="clr-namespace:INTEX.DataBase"
                              xmlns:me="clr-namespace:WPFExcelReport"
                        Loaded="Window_Loaded" 
                        FontSize="16" 
                        Background="White" 
                        HorizontalAlignment="Stretch"
                        Margin="0,0,0,0" 
                        VerticalAlignment="Stretch"
                    >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <db:SETINTEXDB  x:Key="SetData" />
        <db:SETINTEXDB  x:Key="SetProd" />
        <db:SETINTEXDB  x:Key="SetEnv" />
        <CollectionViewSource   x:Key="vwWDECK" Source="{Binding Path=WDECK,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwFDECK" Source="{Binding Path=FDECK,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwVKPOS" Source="{Binding Path=VKPOS,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwVKKOPF" Source="{Binding Path=VKKOPF,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwFSSTAMM" Source="{Binding Path=FSSTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwBFSSTAMM" Source="{Binding Path=BFSSTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWASTAMM" Source="{Binding Path=WASTAMM,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWAFARBEN" Source="{Binding Path=WAFARBEN,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwBSSATZ" Source="{Binding Path=BSSATZ,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwBHSATZ" Source="{Binding Path=BHSATZ,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwBSFARB" Source="{Binding Path=BSFARB,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWTGEW" Source="{Binding Path=WTGEW,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWASTKE" Source="{Binding Path=WASTKE,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwBASTKE" Source="{Binding Path=BASTKE,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWASTPASS" Source="{Binding Path=WASTPASS,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWABIND" Source="{Binding Path=WABIND,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWTEINZ" Source="{Binding Path=WTEINZ,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWTPASS" Source="{Binding Path=WTPASS,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWTSCHUSS" Source="{Binding Path=WTSCHUSS,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWADART" Source="{Binding Path=WADART,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwBASTGA" Source="{Binding Path=BASTGA,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWASTGA" Source="{Binding Path=WASTGA,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwABPOS" Source="{Binding Path=ABPOS,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwABAUFM" Source="{Binding Path=ABAUFM,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwCABAUFM" Source="{Binding Path=ICC_ABAUFM,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwGAAUF" Source="{Binding Path=GAAUF,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwGSDAT" Source="{Binding Path=GSDAT,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwFSFARBEN" Source="{Binding Path=FSFARBEN,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwFSGROE" Source="{Binding Path=FSGROE,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWBBST" Source="{Binding Path=WBBST,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwFBST" Source="{Binding Path=FBST,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwBFBST" Source="{Binding Path=FBST,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwBABST" Source="{Binding Path=BABST,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwGGBST" Source="{Binding Path=GGBST,Source={StaticResource SetData}}" />
    </local:DocumentBase.Resources>
    <TabControl>
        <TabItem Header="{Binding Source={Localization:Translate Word=生产信息}}" Height="26" VerticalAlignment="Bottom">
            <StackPanel   Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
                <WrapPanel >
                    <ComboBox
                    Name="cbWTYE"
                    HorizontalAlignment="Left"
                    IsEditable="True"
                    Background="White"
                    IsTextSearchEnabled="True"
                    IsTextSearchCaseSensitive="False"                           
                    Width="120" 
                    >
                        <ComboBoxItem Content="{Binding Source={Localization:Translate Word=生产单}}"/>
                        <ComboBoxItem Content="{Binding Source={Localization:Translate Word=销售单}}"/>
                        <ComboBoxItem Content="{Binding Source={Localization:Translate Word=发货单}}"/>
                    </ComboBox>
                    <TextBlock Width="Auto" Text="{Binding Source={Localization:Translate Word=订单号}}"></TextBlock>
                    <TextBox   Name="txtVKPAUFKRS" MaxLength="2" Width="40" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Pink"  CharacterCasing="Upper"/>
                    <TextBox   Name="txtVKPAUFLFD" MaxLength="6" Width="80" Margin="0,0,0,0"   HorizontalAlignment="Left"  />
                    <TextBox  Name="txtVKPAUFPOS" Width="60" Margin="0,0,0,0" Text="{Binding Path=VKPAUFPOS, Source={StaticResource ResourceKey=vwVKPOS}}" HorizontalAlignment="Left" Background="Yellow" KeyboardNavigation.TabIndex="0" />
                    <TextBlock Width="Auto"  Text="{Binding Source={Localization:Translate Word=数量}}"></TextBlock>
                    <TextBlock Name="txtVKPMENGE1" Margin="10,0,0,0" Width="Auto" MinWidth="80" Background="Gray" Text="{Binding Path=VKPMENGE1, Source={StaticResource ResourceKey=vwVKPOS}, Converter={StaticResource ResourceKey=d100}}"></TextBlock>
                    <TextBlock Width="Auto"  Text="{Binding Source={Localization:Translate Word=单位}}"></TextBlock>
                    <TextBlock Name="txtVKPMEEH" Margin="10,0,0,0" Width="Auto" Text="{Binding Path=VKPMEEH, Source={StaticResource ResourceKey=vwVKPOS}}"></TextBlock>
                    <TextBlock Width="Auto" Text="{Binding Source={Localization:Translate Word=交期}}"></TextBlock>
                    <TextBlock Name="txtVKPLIEFTERM" Margin="10,0,0,0" Width="Auto" MinWidth="80" Background="Gray" Text="{Binding Path=VKPLIEFTERM, Source={StaticResource ResourceKey=vwVKPOS}}"></TextBlock>
                </WrapPanel>
                <WrapPanel>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Button Grid.Row="0" Height="30"  Width="30" Margin="0,0,0,0"   Click="btnQuery_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Add.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=增加比较}}"></TextBlock>
                    </Grid>
                    <Grid Margin="10,0,0,10">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Button  Height="30"  Width="30" Margin="20,0,0,0"  Click="btnClear_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Delete.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=清理环境}}"></TextBlock>
                    </Grid>
                    <Grid Margin="10,0,0,10">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Button  Height="30"  Width="30" Margin="20,0,0,0"  Click="btnDeleteABON_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Delete.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=删除网络}}"></TextBlock>
                    </Grid>
                    <Grid Margin="10,0,0,10">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Button  Height="30"  Width="30" Margin="20,0,0,0"  Click="btnDeleteAB_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Delete.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=删除订单}}"></TextBlock>
                    </Grid>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="Auto"></RowDefinition>
                        </Grid.RowDefinitions>
                        <Button  Height="30"  Width="30" Margin="20,0,0,0"  Click="btnPrint_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Print.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=打印}}"></TextBlock>
                    </Grid>
                </WrapPanel>
                <TabControl>
                    <TabItem Header="{Binding Source={Localization:Translate Word=All}}" >
                        <Grid Name="grid1" Height="800" Width="800"> 
                            <Viewport3D Grid.ColumnSpan="2" Margin="0,0,0,-0.2">
                                <Viewport3D.Camera>
                                    <PerspectiveCamera Position="0, 0, 0" FarPlaneDistance="2" LookDirection="0, 0, -1" NearPlaneDistance="0.1" UpDirection="0 ,1, 0" FieldOfView="135" />
                                </Viewport3D.Camera>
                                <Viewport2DVisual3D x:Name="v23">
                                    <Viewport2DVisual3D.Geometry>
                                        <MeshGeometry3D Positions="-1, 1, 1 -1, -1, 1 -1, 1, -1 -1, -1, -1 1, 1, -1 1, -1, -1 1, 1, 1 
                                    1, -1, 1 -1, 1, 1 -1, -1, 1 -1, 1, 1 1, 1, 1 -1, -1, 1 1, -1, 1"
                                    TextureCoordinates="0, 0.3333 0, 0.6666 0.25, 0.3333 0.25, 0.6666 0.5,0.3333 0.5, 0.6666 
                                    0.75, 0.3333 0.75, 0.6666 1, 0.3333 1, 0.6666 0.25, 0 0.5, 0 0.25, 1 0.5, 1" 
                                    TriangleIndices="0 1 3 0 3 2 2 3 5 2 5 4 4 5 7 4 7 6 6 7 9 6 9 8 10 2 4 10 4 11 3 12 13 3 13 5"/>
                                    </Viewport2DVisual3D.Geometry>
                                    <Viewport2DVisual3D.Material>
                                        <DiffuseMaterial Viewport2DVisual3D.IsVisualHostMaterial="True" Brush="White" />
                                    </Viewport2DVisual3D.Material>
                                    <me:DataGridMatrix x:Name="ucontrol" Width="800" Height="600" />
                                </Viewport2DVisual3D>
                                <ModelVisual3D>
                                    <ModelVisual3D.Content>
                                        <Model3DGroup>
                                            <DirectionalLight Color="#FFFFFFFF" Direction="0, 0, -1" />
                                            <DirectionalLight Color="#FFFFFFFF" Direction="-1, 0, 0" />
                                            <DirectionalLight Color="#FFFFFFFF" Direction="1, 0, 0" />
                                            <DirectionalLight Color="#FFFFFFFF" Direction="0, 1, 0" />
                                            <DirectionalLight Color="#FFFFFFFF" Direction="0, -1, 0" />
                                        </Model3DGroup>
                                    </ModelVisual3D.Content>
                                </ModelVisual3D>
                            </Viewport3D>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=生产单}}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <DataGrid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwABPOS}}"  
                              HeadersVisibility="Column"
                              x:Name="dgVKPOS"    
      
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                            </DataGrid>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=面料需求}}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwWDECK}}"    
                                                   ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                            </DataGrid>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=辅料需求}}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwFDECK}}"    
                            
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                            </DataGrid>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=纱线需求}}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwGAAUF}}"    
               
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                            </DataGrid>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=轴需求}}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <DataGrid 
                        AutoGenerateColumns="True" EnableRowVirtualization="True"  
                            ItemsSource="{Binding Path=vwBAAUF}"  
                            HeadersVisibility="Column" 
                            CanUserReorderColumns="True"  
                            CanUserResizeRows="True"
                            CanUserSortColumns="True" 
                            RowDetailsVisibilityMode="VisibleWhenSelected"   
 
                            EnableColumnVirtualization="True"  
                            ScrollViewer.HorizontalScrollBarVisibility="Auto"
                            ScrollViewer.VerticalScrollBarVisibility="Auto" 
                            >
                            </DataGrid>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=采购单}}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwCABAUFM}}"  
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                            </DataGrid>
                        </Grid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=包装行}}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="1*"></RowDefinition>
                            </Grid.RowDefinitions>
                            <DataGrid Grid.Row="1"  Grid.Column="1"  
                                                   FontSize="12" ItemsSource="{Binding Source={StaticResource ResourceKey=vwABAUFM}}"    
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" CanUserReorderColumns="True" CanUserResizeRows="True" CanUserSortColumns="True" 
                                        EnableColumnVirtualization="True" HorizontalAlignment="Left">
                            </DataGrid>
                        </Grid>
                    </TabItem>
                </TabControl>
            </StackPanel>

        </TabItem>
        <TabItem Header="{Binding Source={Localization:Translate Word=档案数据}}">
            <StackPanel>
                <StackPanel>
                    <Button  Height="30"  Width="30" Margin="10,0,0,0"   Click="btnRefreshStamm_Click" KeyboardNavigation.TabIndex="3" IsDefault="True" HorizontalAlignment="Left">
                        <Button.Background>
                            <ImageBrush ImageSource="Image/Reload.png" />
                        </Button.Background>
                    </Button>
                    <TextBlock Text="{Binding Source={Localization:Translate Word=刷新}}"></TextBlock>
                </StackPanel>
                <TabControl>
                    <TabItem Header="{Binding Source={Localization:Translate Word=成衣数据}}">

                        <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                              AutoGenerateColumns="True"
                              EnableRowVirtualization="True"  
                              ItemsSource="{Binding Source={StaticResource ResourceKey=vwFSSTAMM}}"  
                              HeadersVisibility="Column"
             Width="1024"
                                      Height="400"
                              FontSize="12"
                              ScrollViewer.HorizontalScrollBarVisibility="Auto"
                              ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=面料数据}}">
                        <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwWASTAMM}}"    
                                           Width="1024"
                                      Height="400"
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=辅料数据}}">
                        <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwBFSSTAMM}}"    
                                       Width="1024"
                                      Height="400"
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=纱线数据}}">
                        <TabControl >
                            <TabItem Header="{Binding Source={Localization:Translate Word=纱线数据不存在}}">
                                <StackPanel>
                                    <WrapPanel>
                                        <Button  Height="30"  Width="30" Margin="10,0,0,0"   Click="btnRefreshGS07_Click" HorizontalAlignment="Left" 
                                     KeyboardNavigation.TabIndex="3" IsDefault="True">
                                            <Button.Background>
                                                <ImageBrush ImageSource="Image/Reload.png" />
                                            </Button.Background>
                                        </Button>
                                        <TextBlock Text="{Binding Source={Localization:Translate Word=刷新}}"></TextBlock>
                                    </WrapPanel>
                                    <DataGrid Grid.Row="1"  Grid.Column="0" Grid.ColumnSpan="3"  
                       ItemsSource="{Binding Source={StaticResource ResourceKey=vwGSDAT}}"  
                       AutoGenerateColumns="False" EnableRowVirtualization="True"
                       VerticalScrollBarVisibility="Auto"
                       HorizontalScrollBarVisibility="Auto"
                        MaxHeight="300"
                       VerticalAlignment="Stretch"
                       HeadersVisibility="Column" 
                       FontSize="12"
                       HorizontalAlignment="Stretch"
                        EnableColumnVirtualization="True">
                                        <DataGrid.Columns>
                                            <DataGridTextColumn Binding="{Binding Path=GSART, Converter={StaticResource ResourceKey=gb2312}}" Header="纱线" Width="Auto" MinWidth="100" />
                                        </DataGrid.Columns>
                                    </DataGrid>
                                </StackPanel>
                            </TabItem>
                        </TabControl>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=成衣BOM}}">
                        <DataGrid 
                        AutoGenerateColumns="True" EnableRowVirtualization="True"  
                            ItemsSource="{Binding Path=vwFSSTUELI}"  
                            HeadersVisibility="Column" 
                            CanUserReorderColumns="True"  
                            CanUserResizeRows="True"
                            CanUserSortColumns="True" 
                            RowDetailsVisibilityMode="VisibleWhenSelected"   
           Width="1024"
                                      Height="400"
                            EnableColumnVirtualization="True"  
                            ScrollViewer.HorizontalScrollBarVisibility="Auto"
                            ScrollViewer.VerticalScrollBarVisibility="Auto" 
                            >
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=成衣尺码}}">
                        <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwFSFARBEN}}"    
                    Width="1024"
                                      Height="400"
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                        </DataGrid>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=尺码信息}}">
                        <DataGrid Grid.Row="1"  Grid.Column="1"  
                                                   FontSize="12" ItemsSource="{Binding Source={StaticResource ResourceKey=vwFSGROE}}"    
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" CanUserReorderColumns="True" CanUserResizeRows="True" CanUserSortColumns="True" 
                                                   Width="1024"
                                      Height="400"
                                      EnableColumnVirtualization="True" HorizontalAlignment="Left">
                        </DataGrid>
                    </TabItem>
                </TabControl>
            </StackPanel>
        </TabItem>
        <TabItem Header="{Binding Source={Localization:Translate Word=仓库数据}}">
            <TabControl>
                <StackPanel>
                    <StackPanel>
                        <Button  Height="30"  Width="30" Margin="10,0,0,0"   Click="btnRefreshStock_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Reload.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=刷新}}"></TextBlock>
                    </StackPanel>
                    <TabItem Header="{Binding Source={Localization:Translate Word=成衣仓库}}">
                        <DataGrid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
                                  AutoGenerateColumns="True"
                                  EnableRowVirtualization="True"  
                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwFBST}}"  
                                  HeadersVisibility="Column"
                                  Width="1024"
                                  Height="400"
                                  FontSize="12"
                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                              >
                        </DataGrid>
                    </TabItem>
                </StackPanel>
                <TabItem Header="{Binding Source={Localization:Translate Word=面料仓库}}">
                    <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwWBBST}}"    
                                           Width="1024"
                                      Height="400"
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                    </DataGrid>
                </TabItem>
                <TabItem Header="{Binding Source={Localization:Translate Word=辅料仓库}}">
                    <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwBFBST}}"    
                                       Width="1024"
                                      Height="400"
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                    </DataGrid>
                </TabItem>
                <TabItem Header="{Binding Source={Localization:Translate Word=纱线仓库}}">
                    <DataGrid Grid.Row="1"  Grid.Column="0"  
                                                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                                                  HeadersVisibility="Column" 
                                                  FontSize="12" 
                                                  ItemsSource="{Binding Source={StaticResource ResourceKey=vwGGBST}}"    
                               Width="1024"
                                      Height="400"
                                                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                                                  >
                    </DataGrid>
                </TabItem>

            </TabControl>
        </TabItem>
        <TabItem Header="{Binding Source={Localization:Translate Word=数据核查}}">
            <TabControl>
                <TabItem Header="{Binding Source={Localization:Translate Word=门幅核对}}">
                    <StackPanel>
                        <WrapPanel>
                            <Button  Height="30"  Width="30" Margin="10,0,0,0"   Click="btnRefreshWS05_Click" HorizontalAlignment="Left" 
                                     KeyboardNavigation.TabIndex="3" IsDefault="True">
                                <Button.Background>
                                    <ImageBrush ImageSource="Image/Reload.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=刷新}}"></TextBlock>
                        </WrapPanel>
                        <DataGrid Grid.Row="1"  Grid.Column="0" Grid.ColumnSpan="3"  
                       ItemsSource="{Binding Source={StaticResource ResourceKey=vwWASTAMM}}"  
                       AutoGenerateColumns="False" EnableRowVirtualization="True"
                       VerticalScrollBarVisibility="Auto"
                       HorizontalScrollBarVisibility="Auto"
                        MaxHeight="300"
                       VerticalAlignment="Stretch"
                       HeadersVisibility="Column" 
                       FontSize="12"
                       HorizontalAlignment="Stretch"
                        EnableColumnVirtualization="True">
                            <DataGrid.Columns>
                                <DataGridTextColumn Binding="{Binding Path=WAART}" Header="{Binding Source={Localization:Translate Word=面料}}" Width="Auto" MinWidth="100" />
                                <DataGridTextColumn Binding="{Binding Path=WAFBRTU,Converter={StaticResource ResourceKey=d10}}" Header="{Binding Source={Localization:Translate Word=有效幅宽}}" Width="Auto" MinWidth="100" />
                                <DataGridTextColumn Binding="{Binding Path=WAFBRTL,Converter={StaticResource ResourceKey=d10}}" Header="{Binding Source={Localization:Translate Word=毛门幅}}" Width="Auto" MinWidth="100" />
                                <DataGridTextColumn Binding="{Binding Path=WAFGRQM}" Header="{Binding Source={Localization:Translate Word=克重/平米}}" Width="Auto" MinWidth="100" />
                            </DataGrid.Columns>
                        </DataGrid>
                    </StackPanel>
                </TabItem>
            </TabControl>
        </TabItem>
    </TabControl>
</local:DocumentBase>
